SPWAW Artillery screen fix version 2 (automatic)
------------------------------------------------

This is a version of the Artillery screen fix that should work automaticaly without the need to 
manualy edit the AFFINITY numbers. The command line script runs a series of checks to see how many 
cpu cores the users computer has and then launches SPWAW with the appropriate cpu AFFINITY value 
fixing the artillery screen unresponsiveness.

Usage:
- First extract the file "SPWAW_Arty_FIX_v2.cmd" to your \Steel Panthers World at War\ -foler 
(where mech.exe resides.)
- To use the fix start the game from the file "SPWAW_Arty_FIX_v2.cmd".

.
.
.


Technical information for those who are interested in how the fix works in depth:

What causes the artillery screen unresponsiveness in SPWAW is an incompatibility of the game when 
run on modern multi core processors. For some reason SPWAW needs to run on the last physical cpu 
core of a multi core processor.

The correct AFFINITY value depends on the number of physical cpu cores the users computer has. 
So for example a standard dual core cpu needs a value of "2", a quad core cpu needs a value of "8", 
a six core cpu needs a value of "20" and so on... The AFFINITY values are derived from binary code that 
is then converted to a hexadecimal value. e.g. Fourth (4) core is 1000 in binary and 8 when converted 
into a hexadecimal.

Rather than having the user figure out how many cpu cores his/her computer has and then finding out the 
correct AFFINITY value this script handles it automaticaly. The command 'wmic cpu get NumberOfCores' is 
used to find out the number of physical cpu cores.

It is worth noting that hyper threaded cores do not count when determining the correct AFFINITY value 
for SPWAW. For example a single core intel CPU with Hyper-Threading should be run on AFFINITY value of "1" 
since the last physical core is core #1 and the second core (#2) is just a Hyper-Threaded logical core.

The script currently supports CPU's that have up to 8 physical cores.
